'use strict';

layui.define(['setter', 'gwzh', 'affix', 'more', 'util'], function(exports) {
  var $ = layui.jquery;
  var setter = layui.setter;
  var admin = layui.gwzh;
  var affix = layui.affix;
  var more = layui.more;
  var MODULE_NAME = 'index';

  // 扩展目录下的其它模块
  layui.each(setter.extend, function(index, item) {
    var mods = {};
    mods[item] = '{/}' + setter.base + 'extends/' + item;
    layui.extend(mods);
  });

  exports(MODULE_NAME, {});

  // dom 加载完毕
  $(function() {
    admin.initRoute();
    more.render('*[lay-more]');
    affix.render('.toolbar-head', { fixClassName: 'toolbar-head-fixed' });
    layui.use('common');
    top !== self && layui.util.fixbar();
  });
});
